/**
 ************************************************************************
  > File Name: api_router_v1.js
  > Author: Leeiio <iio@iiobox.com>
  > Site: https://www.iiobox.com
  > Created Time: 06/04/17 18:50:00
 ************************************************************************/


var express = require('express');
var config = require('config-lite');

var router = new express.Router();

/* GET home page. */
router.get('/', function homepage(req, res, next) {
  return res.send({
    current_page_url: config.ssl ? 'https://' : 'http://' + config.host + '/api/v1',
    author: 'Leeiio(iio@iiobox.com)',
    website: 'https://www.iiobox.com',
    copyright: 'Copyright © 2016, iioBox Technology Co., Ltd. All Rights Reserved. 杭州锦匣科技有限公司'
  });
});

module.exports = router;
